import request from '@/utils/request'

// 查询宠物就诊记录列表
export function listConsultationRecord(query) {
  return request({
    url: '/hospital/ConsultationRecord/list',
    method: 'get',
    params: query
  })
}
//医生接诊查询当天 宠物挂号列表
export function listConsultationRecordnow(query) {
  return request({
    url: '/hospital/ConsultationRecord/listnow',
    method: 'get',
    params: query
  })
}

// 查询宠物就诊记录详细
export function getConsultationRecord(id) {
  return request({
    url: '/hospital/ConsultationRecord/' + id,
    method: 'get'
  })
}

// 新增宠物就诊记录
export function addConsultationRecord(data) {
  return request({
    url: '/hospital/ConsultationRecord',
    method: 'post',
    data: data
  })
}

// 修改宠物就诊记录
export function updateConsultationRecord(data) {
  return request({
    url: '/hospital/ConsultationRecord',
    method: 'put',
    data: data
  })
}

// 删除宠物就诊记录
export function delConsultationRecord(id) {
  return request({
    url: '/hospital/ConsultationRecord/' + id,
    method: 'delete'
  })
}
